<?php

namespace App\Models\Mental;

use App\Models\BasicModel;
use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Topic extends BasicModel
{
	use HasDateTimeFormatter;
    protected $table = 'mental_topic';
    protected $hidden = [
        'password',
//        'remember_token',
//        'created_at',
//        'updated_at'
    ];

    public function options()
    {
        return $this->hasMany(Options::class, 'topic_id', 'id');
    }

    public function test()
    {
        return $this->belongsTo(Lists::class, 'list_id', 'id');
    }
}
